package xsxdjc
public class ZengQiangPingFenKa2{
	public static Closure rule = {_context_ ->
		hc.bre.calc.scorecard.ScResult _result_ = new hc.bre.calc.scorecard.ScResult();
		_result_.rname = '增强评分卡2';
		_result_.rpath = 'xsxdjc/ZengQiangPingFenKa2';
		
		_result_.score = 800;
		def _clasReturn_;
		_clasReturn_ = apply(class9.年龄风险分类.rule);
		switch(_clasReturn_.clas.id){
			case 1: 
				_result_.score += 100;
				_result_.detail.add(new hc.bre.calc.scorecard.ScResultDetailItem(clas:_clasReturn_, score:100, reason:PolicyReason.R0001, userdef:null));
				break;
			case 2: 
				_result_.score += 200;
				_result_.detail.add(new hc.bre.calc.scorecard.ScResultDetailItem(clas:_clasReturn_, score:200, reason:PolicyReason.R0002, userdef:null));
				break;
			case 3: 
				_result_.score += 300;
				_result_.detail.add(new hc.bre.calc.scorecard.ScResultDetailItem(clas:_clasReturn_, score:300, reason:null, userdef:null));
				break;
			case 0: 
				_result_.score += 0;
				_result_.detail.add(new hc.bre.calc.scorecard.ScResultDetailItem(clas:_clasReturn_, score:0, reason:null, userdef:null));
				break;
			default : assert false;break;
		};
		_clasReturn_ = apply(class9.是否优质画像.rule);
		switch(_clasReturn_.clas.id){
			case 1: 
				_result_.score += 0;
				_result_.detail.add(new hc.bre.calc.scorecard.ScResultDetailItem(clas:_clasReturn_, score:0, reason:null, userdef:null));
				break;
			case 0: 
				_result_.score += 0;
				_result_.detail.add(new hc.bre.calc.scorecard.ScResultDetailItem(clas:_clasReturn_, score:0, reason:null, userdef:null));
				break;
			default : assert false;break;
		};
		_clasReturn_ = apply(SimpleBranch.rule);
		switch(_clasReturn_.clas.id){
			case 1: 
				_result_.score += 0;
				_result_.detail.add(new hc.bre.calc.scorecard.ScResultDetailItem(clas:_clasReturn_, score:0, reason:null, userdef:null));
				break;
			case 1: 
				_result_.score += 0;
				_result_.detail.add(new hc.bre.calc.scorecard.ScResultDetailItem(clas:_clasReturn_, score:0, reason:null, userdef:null));
				break;
			case 0: 
				_result_.score += 0;
				_result_.detail.add(new hc.bre.calc.scorecard.ScResultDetailItem(clas:_clasReturn_, score:0, reason:null, userdef:null));
				break;
			default : assert false;break;
		};
		_result_.score = Func.fabonici(_result_.score);
		
		return _result_;
	};
};